
public class PrintStrings {

	public static void print(String prefix, String sufix) { //synchronize jest zeby po kolei
		
		try {
			Thread.sleep((long) (Math.random() * 500));
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		System.out.print(prefix);
		try {
			Thread.sleep((long) (Math.random() * 500));
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		System.out.println(sufix);
		
	}

}
